projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985b5a0
)
set: Fix gtk_set_get_max
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Jun 2020 01:35:53 +0000
(21:35 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 5 Jun 2020 18:57:32 +0000
(14:57 -0400)
This function had an off-by-one error. Thankfully,
our selection tests are thorough enough to catch it.
gtk/gtkset.c
patch
|
blob
|
history
diff --git
a/gtk/gtkset.c
b/gtk/gtkset.c
index b4e0ae7627eec8816d10f85a859d2b280905371a..18fab23c563b8cc634c99fe7bd58b8d139789429 100644
(file)
--- a/
gtk/gtkset.c
+++ b/
gtk/gtkset.c
@@
-364,7
+364,7
@@
gtk_set_get_max (GtkSet *set)
r = &g_array_index (set->ranges, Range, set->ranges->len - 1);
- return r->first + r->n_items;
+ return r->first + r->n_items
- 1
;
}
#if 0